package scjp.preparation.local;

import java.util.Locale;

public class LocaleDetails {

	/**
	 * @param args
	 */
	public static void main(String args[]) {
		Locale.setDefault(Locale.CANADA_FRENCH);
		Locale defaultLocale = Locale.getDefault();
		System.out.printf("The default locale is %s %n", defaultLocale);
		System.out.printf("The default language code is %s and the name is %s %n",
		defaultLocale.getLanguage(), defaultLocale.getDisplayLanguage());
		System.out.printf("The default country code is %s and the name is %s %n",
		defaultLocale.getCountry(), defaultLocale.getDisplayCountry());
		System.out.printf("The default variant code is %s and the name is %s %n",
		defaultLocale.getVariant(), defaultLocale.getDisplayVariant());
		}

}
